<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
   <form action="./login" method ="post">
   登录名称:<input type = "text" name="loginName"><br>
   登录密码:<input type= "password" name="loginPwd"><br>
   校验码  :<input type="text" name="code"><img src="./servlet"><br>
   <input type="submit" value="提交"> 
</form>
<% 
    request.setCharacterEncoding("utf-8");
    String msg = request.getParameter("msg");
    if(msg!= null && !"".equals(msg))
    {
	    msg = new String(msg.getBytes("ISO-8859-1"),"utf-8");
%>
<script type="text/javascript">
    alert('<%= msg %>');
</script>
<%} %>
</body>
</html>